using ECommerce.Web.Models;

namespace ECommerce.Web.NHibernate.Mappings.EntityMappings
{
    public class BasketItemMap : EntityMap<BasketItem>
    {
        public BasketItemMap()
        {
            Map(x => x.Quantity).Not.Nullable();

            References(x => x.Basket).Not.Nullable();

            References(x => x.Product).Not.Nullable();
        }
    }
}